package com.tree.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author tree
 */
@Controller
public class OrderController {
    /**
     *  首页
     * @return
     */
	@RequestMapping("/")
	public String index() {
		return "index";
	}

    /**
     *  查询订单
     * @return
     */
	@RequestMapping("/showOrder")
	public String showOrder() {
		return "showOrder";
	}

    /**
     *  添加订单
     * @return
     */
	@RequestMapping("/addOrder")
	public String addOrder() {
		return "addOrder";
	}

    /**
     *  修改订单
     * @return
     */
	@RequestMapping("/updateOrder")
	public String updateOrder() {
		return "updateOrder";
	}

    /**
     *  删除订单
     * @return
     */
	@RequestMapping("/deleteOrder")
	public String deleteOrder() {
		return "deleteOrder";
	}

    /**
     *  自定义登陆页面
     * @return
     */
	@GetMapping("/login")
	public String login() {
		return "login";
	}

}
